package com.study.common.tree;

/**
 * @author yaojinshan
 * @version 1.0
 * @description: 节点类 用来标识树上的一个节点
 * @date 2019/7/22 16:24
 */
public class Node {
    private Node leftChild;//左节点
    private Node rightChild;//有节点
    private Integer nodeValue;//节点值

    public Node(int nodeValue) {
        this.nodeValue = nodeValue;
    }

    public Node getLeftChild() {
        return leftChild;
    }

    public void setLeftChild(Node leftChild) {
        this.leftChild = leftChild;
    }

    public Node getRightChild() {
        return rightChild;
    }

    public void setRightChild(Node rightChild) {
        this.rightChild = rightChild;
    }

    public Integer getNodeValue() {
        return nodeValue;
    }

    public void setNodeValue(Integer nodeValue) {
        this.nodeValue = nodeValue;
    }
}
